package com.guli.gulimall.product.feign;

import com.guli.common.utils.R;
import com.guli.common.vo.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.IOException;
import java.util.List;

/**
 * @ClassName SearchFeignService
 * @Author Hao_YunKai
 * @Date 2022/1/10 19:48
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    @PostMapping("/up/product")
    R upProduct(@RequestBody List<SkuEsModel> list) throws IOException;
}
